package cn.submarine;
import javax.swing.ImageIcon;
public class Images {
    public static ImageIcon battleship;//战舰
    public static ImageIcon obsersubm;//侦查潜艇
    public static ImageIcon torpesubm;//鱼雷潜艇
    public static ImageIcon minesubm;//水雷潜艇
    public static ImageIcon mine;//水雷
    public static ImageIcon bomb;//炸弹
    public static ImageIcon sea;//海洋背景
    public static ImageIcon gameover;//游戏结束背景

    static {
        // 初始化静态图片
        battleship = new ImageIcon("img/battleship.png");
        obsersubm = new ImageIcon("img/obsersubm.png");
        torpesubm = new ImageIcon("img/torpesubm.png");
        minesubm = new ImageIcon("img/minesubm.png");
        mine = new ImageIcon("img/mine.png");
        bomb = new ImageIcon("img/bomb.png");
        sea = new ImageIcon("img/sea.png");
        gameover = new ImageIcon("img/gameover.png");
    }

    public static void main(String[] args) {
        //此处是用于验证上方图片是否能正常显示：8-正常；4-异常
        System.out.println(battleship.getImageLoadStatus());
        System.out.println(obsersubm.getImageLoadStatus());
        System.out.println(torpesubm.getImageLoadStatus());
        System.out.println(minesubm.getImageLoadStatus());
        System.out.println(mine.getImageLoadStatus());
        System.out.println(bomb.getImageLoadStatus());
        System.out.println(sea.getImageLoadStatus());
        System.out.println(gameover.getImageLoadStatus());
    }
}
